﻿using com.guojin.core.io.message;
using com.guojin.core.io;
using System;

namespace com.guojin.mj.net.message.login
{
    public class UpgradeAllianceRet : Message
    {
        public static int TYPE = 7;
        public static int ID = 124;
        /***
            * 0金币不足
            * 1代表升级成功
            * 2升级失败
            */
        public int result;

        public void decode(Input _in)
        {
            result = _in.readInt();
        }

        public void encode(Output _out)
        {

        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }
        public string toString()
        {
            return "result" + result;
        }
    }
}

